/**   
 * @Title: BootBroadcastReceiver.java 
 * @Package com.atsmart.app.service 
 * @Description: 
 * @author 刘三辉
 * @date 2012-5-12 上午11:13:00 
 * @version V1.0   
 */
package com.atsmart.app.receiver;

import java.io.File;
import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Timer;
import java.util.TimerTask;

import android.content.BroadcastReceiver;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.os.Environment;
import android.util.Log;

import com.atsmart.app.BizApp;
import com.atsmart.app.R;
import com.atsmart.app.model.CheckDurationInfo;
import com.atsmart.app.model.CommonBody;
import com.atsmart.app.model.PositionAttributeInfo;
import com.atsmart.app.model.PositionInfo;
import com.atsmart.app.model.PositionShutDownInfo;
import com.atsmart.app.model.PositonsInfo;

import com.atsmart.app.service.CheckingService;
import com.atsmart.app.sql.NumberSqlHelper;
import com.atsmart.app.sql.PositionSqlHelper;
import com.atsmart.app.sql.ShutDownSqlHelper;
import com.atsmart.app.utils.StringUtil;
import com.atsmart.app.webservice.ServiceHelper;
import com.atsmart.app.webservice.ServiceHost;
//import com.atsmart.log.UserLog;
import com.google.json.Gson;

/**
 * @ClassName: BootBroadcastReceiver
 * @Description:
 * @author zhao
 * @date 2012-5-12 上午11:13:01
 */
public class TimeBroadcastReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(final Context context, Intent intent) {
		if (!BizApp.getInstance().isServiceRun()) {
			Intent i = new Intent(context, CheckingService.class);
			context.startService(i);
		}

	}


}